
set(OpenCV_DIR "/home/mod/code/opencv/mobile/release/opencv-mobile-4.5.1-android/sdk/native/jni")

find_package(OpenCV REQUIRED)

macro(neon_add_example name)
    add_executable(${name} ${name}.cpp)
    
    set_target_properties(${name} PROPERTIES COMPILE_FLAGS  -fopenmp) 
    # aarch64默认开启
    #set_target_properties(${name} PROPERTIES COMPILE_FLAGS -mfpu=neon) 
    target_include_directories(${name} PRIVATE ${OpenCV_INCLUDE_DIRS})
    target_link_libraries(${name} PRIVATE ${OpenCV_LIBS} -fopenmp -static-openmp)
endmacro()

neon_add_example(array)
neon_add_example(rgb_deinterleave)
neon_add_example(matrixMul)
neon_add_example(matrixMul-old)
neon_add_example(vld1q_f32)
